package com.framework.spring.scan.util;

import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;
import org.springframework.core.type.filter.TypeFilter;

public class MySpringInterfaceScanner extends ClassPathBeanDefinitionScanner {
	public MySpringInterfaceScanner(BeanDefinitionRegistry registry) {
		super(registry);
	}

	@Override
	protected void registerDefaultFilters() {
		addIncludeFilter(new InterfaceFiler("com.framework.spring.scan.bean.D", false, true));
	}

	@Override
	public void addIncludeFilter(TypeFilter includeFilter) {
		super.addIncludeFilter(includeFilter);
	}
}
